package com.shop.mapper;

import com.shop.entity.ShopUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShopUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(ShopUser record);

    ShopUser selectByPrimaryKey(Integer userId);

    List<ShopUser> selectAll();

    int updateByPrimaryKey(ShopUser record);

    //根据用户名查找用户
    ShopUser selectByUsername(String username);

    //获取最后一个用户的id
    Integer selectLastUserId();
}